package com.mxl.rabbitmq.model;

import lombok.Data;

import java.io.Serializable;

/**
 * @author MXL
 * @date 2021/9/14 0014
 **/
@Data
public class MessageBody implements Serializable {
    private int code;
    private String content;
    private String time;
    private Long deliveryTag;
    private int index;

    public MessageBody(int code, String content, String time) {
        this.code = code;
        this.content = content;
        this.time = time;

    }

    public MessageBody(int code, String content, String time, Long deliveryTag, int index) {
        this.code = code;
        this.content = content;
        this.time = time;
        this.deliveryTag = deliveryTag;
        this.index = index;
    }
}
